package edu.whut.mall.admin.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * Author: smq
 * Unit: D9lab
 * Date: 2021-06-10 09.52
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class LoginVo implements Serializable {
    private static final long serialVersionUID = 63790L;

    private Serializable token; //token

    private String username;    //管理员名称

    private Date visitTime;     //访问时间

    private int key;            //thymeleaf测试登录标志位，前后端分离项目不存在此参数

    private List<Integer> adminType;     //管理员角色类型

    @Override
    public String toString() {
        return "LoginVo{" +
                "token=" + token +
//                ", adminType=" + adminType +
                '}';
    }
}
